Software Development
Inversion of Control and Dependency Injection in Spring
Spring Framework: Configuring Beans with Autowiring
Spring Framework: The Fundamentals of Dependency Injection

Spring Framework: Configuring Beans with Autowiring

Course Number:
it_jpicisdj_02_enus
Lesson Objectives

Spring Framework: Configuring Beans with Autowiring

  • discover the key concepts covered in this course
  • link a bean to a dependent bean using a reference set in the XML config file
  • recognize the different ways in which bean references can be set
  • use autowiring to connect beans that are related to each other
  • apply autowiring to the beans created from a class using the Autowired annotation
  • apply the Autowired annotation to the setters and constructors of a bean class
  • outline the limitations of autowiring
  • implement autowiring using a Java-based bean configuration file
  • create a class whose beans depend on several other beans
  • set autowiring for a bean with multiple dependencies using an XML config file
  • set autowiring for a bean with multiple dependencies using a Java config file
  • summarize the key concepts covered in this course

Overview/Description
The Autowiring feature in Spring enables the injection of object dependency implicitly using a setter or constructor injection. Use this course to explore complex beans with dependencies on other beans and how the autowiring feature links them together. Examine how to create beans in reference to other beans, use the @Autowired annotation, and build a bean with multiple dependencies. You will also investigate different types of autowiring and discover how autowiring manages the linking of beans. After completing this course, you will have the skills to construct a complex bean with 1-1 or 1-many dependencies and configure beans with Autowiring.

Target

Prerequisites: none

Spring Framework: The Fundamentals of Dependency Injection

Course Number:
it_jpicisdj_01_enus
Lesson Objectives

Spring Framework: The Fundamentals of Dependency Injection

  • discover the key concepts covered in this course
  • recognize the concept of dependency injection and inversion of control
  • describe the features available in the Spring framework to implement dependency injection
  • define a bean to be injected into an application using an XML file
  • use the Spring framework's BeanFactory to instantiate a bean and inject it into a program
  • create an ApplicationContext instance to provision and inject beans
  • contrast the initialization of beans in an ApplicationContext with their creation in a BeanFactory
  • define a bean using annotations in a Java config file
  • set methods to run after bean construction and before their destruction
  • set the properties of a bean using methods in a Java config file
  • set the properties of a bean using tags in an XML file
  • summarize the key concepts covered in this course

Overview/Description
A fundamental aspect of the Spring framework, dependency injections allow for loose coupling of components. Use this course to learn more about the elements that come together to configure and inject dependencies into a portion of a large application. Investigate concepts around dependency injection, such as inversion of control, beans, and the Spring Inversion of Control (IoC) framework. The course will also help you get hands-on experience implementing dependency injections and explore BeanFactory, ApplicationContext, and Java-based bean configuration. After you're done with this course, you'll be able to implement dependency injections within the Spring framework to eliminate or reduce unnecessary dependencies in your code.

Target

Prerequisites: none

Close Chat Live